package generator

import "beergo/plugins/maker"

func init() {
	Doctor()
	DoctorService()
}

func Doctor() {
	c := maker.CreateTable("Doctor","特邀专家","check")
	c.AddManyToOne("user","所属用户","sys.User").SetSrcDir("sys")
	c.AddName()
	c.AddText("pic","照片")
	c.AddText("level","职称")
	c.AddArt("info","简介")
	c.AddContent()
	c.Generate()
}
func DoctorService() {
	c := maker.CreateTable("DoctorService","专家专题服务","check")
	//c.AddManyToOne("user","所属用户","sys.User").SetSrcDir("sys")
	c.AddManyToOne("doctor","所属专家","Doctor")
	c.AddName()
	c.AddText("pic","照片")
	c.AddText("title","标题")
	c.AddContent()
	c.Generate()
}